This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Help with agent document selection ~Wendy Preveluburoopsi 5.Feb.03 12:25 PM a Web browser Applications Development 6.0Windows 2000
I have experienced the same problem. I think the Cleanup agent in domlog.nsf works inefficiently because normally it should not need full text index. My solution is to replace the original Cleanup agent with LS agent with following code:
Sub Initialize
Dim queryString As String
queryString = {( @Adjust(@Created;0;0;10;0;0;0) < @Now)}
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim DateTime As New NotesDateTime("")
Dim coll As NotesDocumentCollection
Set coll = db.Search( queryString, DateTime, 0 )
Dim s As String
s = Cstr(coll.count)
Call coll.RemoveAll(True )
Print {Number of deleted documents: } & s
End Sub